package vip.specimen.system.datasource.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * *@Author: 余浪人
 * *@Date：2021/02/20 16:59
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Getter
@Setter
@Entity
@Table(name = "SystemEmailConfig")
public class SystemEmailConfigEntity extends BaseEntity {
    @ApiModelProperty(value = "email服务器地址")
    private String emailAddress;
    @ApiModelProperty(value = "email服务器端口", dataType = "int")
    private int emailPost;
    @ApiModelProperty(value = "email账户")
    private String emailAccount;
    @ApiModelProperty(value = "email账户密码")
    private String emailPassword;

    public SystemEmailConfigEntity() {
    }

    public SystemEmailConfigEntity(String emailAddress, int emailPost, String emailAccount, String emailPassword) {
        this.emailAddress = emailAddress;
        this.emailPost = emailPost;
        this.emailAccount = emailAccount;
        this.emailPassword = emailPassword;
    }

    @Override
    public String toString() {
        return "SystemEmailConfigEntity{" +
                "emailAddress='" + emailAddress + '\'' +
                ", emailPost=" + emailPost +
                ", emailAccount='" + emailAccount + '\'' +
                ", emailPassword='" + emailPassword + '\'' +
                '}';
    }
}
